package com.easy.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ClassName Order
 * @Description TODO
 * @Author 周轩霆
 * @Date 2022/5/31 9:34
 **/

public class Order {
    private Integer id;
    private Integer room_id;
    private Integer vip_id;
    private Date start_time;
    private int stay_days;
    private Date checkout_time;
    private int state;
    private List<OrderDetail> infolist;
    //一个订单对应多个明细
    //精度高
    private BigDecimal money;

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Order() {
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoom_id() {
        return room_id;
    }

    public void setRoom_id(Integer room_id) {
        this.room_id = room_id;
    }

    public Integer getVip_id() {
        return vip_id;
    }

    public void setVip_id(Integer vip_id) {
        this.vip_id = vip_id;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public int getStay_days() {
        return stay_days;
    }

    public void setStay_days(int stay_days) {
        this.stay_days = stay_days;
    }

    public Date getCheckout_time() {
        return checkout_time;
    }

    public void setCheckout_time(Date checkout_time) {
        this.checkout_time = checkout_time;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<OrderDetail> getInfolist() {
        return infolist;
    }

    public void setInfolist(List<OrderDetail> infolist) {
        this.infolist = infolist;
    }

    public Order(Integer id, Integer room_id, Integer vip_id, Date start_time, int stay_days, Date checkout_time, int state, List<OrderDetail> infolist) {
        this.id = id;
        this.room_id = room_id;
        this.vip_id = vip_id;
        this.start_time = start_time;
        this.stay_days = stay_days;
        this.checkout_time = checkout_time;
        this.state = state;
        this.infolist = infolist;

    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", room_id=" + room_id +
                ", vip_id=" + vip_id +
                ", start_time=" + start_time +
                ", stay_days=" + stay_days +
                ", checkout_time=" + checkout_time +
                ", state=" + state +
                ", infolist=" + infolist +
                '}';
    }
}
